package com.tjzx.entity;

import java.sql.Timestamp;

/**
 * PeispatientConnectId entity. @author MyEclipse Persistence Tools
 */

public class PeispatientConnectId implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer idPatient;
	private Timestamp connectTime;
	private String connectMemo;

	// Constructors

	/** default constructor */
	public PeispatientConnectId() {
	}

	/** minimal constructor */
	public PeispatientConnectId(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public PeispatientConnectId(Integer id, Integer idPatient,
			Timestamp connectTime, String connectMemo) {
		this.id = id;
		this.idPatient = idPatient;
		this.connectTime = connectTime;
		this.connectMemo = connectMemo;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getIdPatient() {
		return this.idPatient;
	}

	public void setIdPatient(Integer idPatient) {
		this.idPatient = idPatient;
	}

	public Timestamp getConnectTime() {
		return this.connectTime;
	}

	public void setConnectTime(Timestamp connectTime) {
		this.connectTime = connectTime;
	}

	public String getConnectMemo() {
		return this.connectMemo;
	}

	public void setConnectMemo(String connectMemo) {
		this.connectMemo = connectMemo;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PeispatientConnectId))
			return false;
		PeispatientConnectId castOther = (PeispatientConnectId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getIdPatient() == castOther.getIdPatient()) || (this
						.getIdPatient() != null
						&& castOther.getIdPatient() != null && this
						.getIdPatient().equals(castOther.getIdPatient())))
				&& ((this.getConnectTime() == castOther.getConnectTime()) || (this
						.getConnectTime() != null
						&& castOther.getConnectTime() != null && this
						.getConnectTime().equals(castOther.getConnectTime())))
				&& ((this.getConnectMemo() == castOther.getConnectMemo()) || (this
						.getConnectMemo() != null
						&& castOther.getConnectMemo() != null && this
						.getConnectMemo().equals(castOther.getConnectMemo())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37 * result
				+ (getIdPatient() == null ? 0 : this.getIdPatient().hashCode());
		result = 37
				* result
				+ (getConnectTime() == null ? 0 : this.getConnectTime()
						.hashCode());
		result = 37
				* result
				+ (getConnectMemo() == null ? 0 : this.getConnectMemo()
						.hashCode());
		return result;
	}

}